package com.Nahida.NaHome.activity.settings;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.Nahida.NaHome.R;
import com.Nahida.NaHome.activity.base.BaseActivity;
import com.Nahida.NaHome.util.MsgUtil;
import com.google.android.material.card.MaterialCardView;

public class SettingMainActivity extends BaseActivity {

    MaterialCardView button_key,button_pkg,button_about;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting_main);

        button_key = findViewById(R.id.setting_key);
        button_pkg = findViewById(R.id.setting_pkg);
        button_about = findViewById(R.id.setting_about);

        button_key.setOnClickListener(v -> jumpTo(SettingKeyActivity.class));
        button_pkg.setOnClickListener(v -> jumpTo(SettingPkgActivity.class));
        button_about.setOnClickListener(v -> MsgUtil.showMsg("喵~",this));
    }

    private void jumpTo(Class<?> activityClass){
        Intent intent = new Intent(this,activityClass);
        startActivity(intent);
    }
}